package com.example.docmanagement.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 创建权限请求
 */
@Data
@Schema(description = "创建权限请求")
public class PermissionCreateRequest {

    @NotBlank
    @Schema(description = "权限标识", example = "user:list")
    private String name;

    @NotBlank
    @Schema(description = "权限显示名称", example = "用户列表")
    private String displayName;

    @Schema(description = "权限描述")
    private String description;

    @NotBlank
    @Schema(description = "所属资源模块", example = "user")
    private String resource;

    @NotBlank
    @Schema(description = "操作动作", example = "list")
    private String action;

    @Schema(description = "权限分类", example = "用户管理")
    private String category;

    @Schema(description = "排序值", example = "10")
    private Integer sortOrder = 0;
}


